package com.shengyin.ec.service.permission;

import java.util.List;

import com.shengyin.ec.model.entity.Roles;

public interface RolesService {

	public void createRoles(Roles roles);

	public void deleteRoles(Roles roles);

	public void deleteRolesById(long id);

	public void modifyRoles(Roles roles);

	public Roles getRolesById(long id);

	public List<Roles> getRolesList();

	public List<Roles> getRolesList(int start, int end);

	public List<Roles> getRolesListByKeyword(String keyword, int start, int end);

	public void deleteSelectedRoles(Long[] ids);

	public Long getTotal();
	
	
	public void ResourcesAllocateToRole(String [] ids,long roleId);
	
	public void CancelRolesResources(long resourceid,long roleid);
}
